<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"> 

<h:head>
</h:head>
<h:body> 
	<h:form>
		<h:inputHidden value="#{userMBean.user.id}" />
		<p:panelGrid columns="2">  
   	 		<f:facet name="header">  
        		Usuário  
    		</f:facet>  
  	
  			<h:outputLabel for="id" value="Id: " />  
    		<h:outputText id="id" value="#{userMBean.user.id}" />   
  
  			<h:outputLabel for="login" value="Login: *" />  
    		<p:inputText id="login" value="#{userMBean.user.login}" required="true" label="login"/>  
  
  			<h:outputLabel for="userName" value="Nome: *" />  
    		<p:inputText id="userName" value="#{userMBean.user.nome}" required="true" label="nome"/>
    		
    		<h:outputLabel for="userPass" value="Senha: *" />
    		<p:password id="userPass" value="#{userMBean.user.senha}" feedback="true" required="true" redisplay="true"/>
    		
    		<h:outputLabel for="email" value="Email: *" />  
    		<p:inputText id="email" value="#{userMBean.user.email}" required="true" label="email"/>
    		
		    <f:facet name="footer">  
		        <p:commandButton value="Salvar" icon="ui-icon-check" action="#{userMBean.salvar}"/>  
		    </f:facet>
		    
		</p:panelGrid>
	</h:form>

</h:body> 
</html>
